package com.study.talk.netty.message.response;

import com.study.common.annotation.Desc;
import com.study.talk.netty.message.MessageType;
import com.study.talk.netty.message.TalkMessage;

@Desc("添加好友消请求出后 发出请求的客户端的回响")
public class AddUserSelfResponse extends TalkMessage {

    @Desc("被邀请用户id")
    private Integer invitedUserId;

    @Desc("不能邀请的原因")
    private String reason;

    @Desc("邀请是否成功发出")
    private Boolean success;

    @Override
    public byte getType() {
        return MessageType.ADD_USER_SELF_RESPONSE;
    }

    public AddUserSelfResponse(Integer invitedUserId, String reason, Boolean success) {
        this.invitedUserId = invitedUserId;
        this.reason = reason;
        this.success = success;
    }

    public AddUserSelfResponse() {
    }

    public Integer getInvitedUserId() {
        return invitedUserId;
    }

    public void setInvitedUserId(Integer invitedUserId) {
        this.invitedUserId = invitedUserId;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    public Boolean getSuccess() {
        return success;
    }

    public void setSuccess(Boolean success) {
        this.success = success;
    }
}
